Virtual reality mediated upper extremity rehabilitation